package demo2;

public class Test {
    //这是利用泛型方法，而且不是静态的
    public static void main(String[] args) {
        Integer[] ARRAY={1,2,3,4,5,6,7};
        Alg3 alg3=new Alg3();
        int ret=alg3.findMax(ARRAY);
        System.out.println(ret);
    }
    public static void main2(String[] args) {
        Integer[] arr={1,2,3,4,5,6,7};
        int ret=Alg2.findMax(arr);//直接通过类名调用方法...
        System.out.println(ret);
    }
    public static void main1(String[] args) {
        Alg<Integer> alg=new Alg<>();
        Integer[] array={1,2,3,4,5,6,7};
        int ret=alg.findMax(array);
        System.out.println(ret);
    }
}
